x86/mm: Override mfn_to_page() and page_to_mfn() to use mfn_t
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 18 Aug 2017 10:27:26 +0000 (11:27 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 18 Aug 2017 12:43:55 +0000 (13:43 +0100)
commitf1fc11846c2fea47efcced48c2b4aac35987aa67
treeb4559a64e9540709fcdb0075e5fa2b0afd936c68
parentc39cf093fc7de5eb3c8bc2bee0cd3078d4049947
x86/mm: Override mfn_to_page() and page_to_mfn() to use mfn_t

To avoid breaking the build elsewhere, the l{1..4}e_{from,get}_page() macros
are switched to using __mfn_to_page() and __page_to_mfn().

Most changes are wrapping or removing _mfn()/mfn_x() from existing callsites.

However, {alloc,free}_l1_table() are switched to using __map_domain_page(), as
their pfn parameters are otherwise unused.  get_page() has one pfn->mfn
correction in a printk(), and __get_page_type()'s IOMMU handling has its gfn
calculation broken out for clarity.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c
xen/include/asm-x86/page.h